import $axios from './index'


export function login(data) {
  const url = '/login'
  return $axios.post(url, data, {credentials: 'include'})
}
export function getInfo() {
  const url = '/userinfo'
  return $axios.get(url)
}
